<?php
require_once("domaintool.php");
?>

<body>
<form id="form1" name="form1" method="get" action="<?php echo $PHPSELF; ?>">
  Enter URL to test : 
  <input name="url" type="text" id="url" value="<?php echo $_REQUEST['url']; ?>" />
<!-- Keyword : <input name="keyword" type="text" id="keyword" value="<?php echo $_REQUEST['keyword']; ?>" />  -->
  <input type="submit" name="Submit" value="Submit" />
</form>
<fieldset>
<legend>Query result</legend>
<?php
if ((isset($_REQUEST['Submit'])) && ($_REQUEST['url']!='')) {

$url=$_REQUEST['url'];
$keyword=$_REQUEST['keyword'];

echo "Google pagerank = ".getpagerank($url)."<br />";
echo "Googlebot last access = ".googlebot_lastaccess($url)."<br />";
echo "Listed in DMOZ ? ".dmoz_listed($url)."<br />";
echo "Technorati rank = ".get_technorati_rank($url, "0d00983ec6e194100ee61479b98775a5")."<br />";
echo "Technorati inblogs(authority) = ".$techno_inblogs."<br />";
echo "Technorati inlinks = ".$techno_inlinks."<br />";
echo "Technorati last update = ".$techno_update."<br />";
echo "Alexa popularity = ".get_alexa_popularity($url)."<br />";
echo "Alexa backlink = ".alexa_backlink($url)."<br />";
echo "Google backlink = ".google_backlink($url)."<br />";
echo "Yahoo inlink = ".yahoo_inlink($url)."<br />";
echo "Google indexed = ".google_indexed($url)."<br />";
echo "Yahoo indexed = ".yahoo_indexed($url)."<br />";
echo "MSN indexed = ".msn_indexed($url)."<br />";
echo "AllTheWeb result = ".alltheweb_link($url)."<br />";
echo "Altavista result = ".altavista_link($url)."<br />";
} else {
echo "Enter the URL to test first then click Submit button.";
};
?>
</fieldset>
<center><small><i>Powered by: <a href="http://www.diagnosticoweb.com"><b>Web Diagnostic</b></a></i></small></center>
</body>
</html>